﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter12.Code03.Code01.Example04
{
    public class Cow : Animal
    {
        public Cow(string newName)
            : base(newName)
        {

        }

        public void Milk()
        {
            Console.WriteLine("{0} has been milked.", name);
        }

        public override void MakeANoise()
        {
            Console.WriteLine("{0} says 'moo!'", name);
        }
    }
}
